from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import BookViewSet, get_book, get_films

router = DefaultRouter()
router.register(r"books", BookViewSet)  # 自动生成标准路由

urlpatterns = [
    path("api/", include(router.urls)),
    path("book/", get_book),
    path("films/", get_films),
]
